<?php

$dir[] = _SYS_."classes/";
$dir[] = _SYS_."functions/";
$dir[] = _APP_."classes/";
$dir[] = _APP_."functions/";

foreach ($dir as $indent) {

$image = scandir($indent);
foreach($image as $class){
    if(!($class=="." OR $class=="..")){
        require_once($indent.$class);
    }
}

}

?>